const queue = []
queue.push('辣椒炒肉')
queue.push('辣椒炒辣椒')
queue.push('荷包蛋炒辣椒')

while (queue.length) {
  const top = queue[0]
  console.log(top);
  queue.shift()
}